package com.agrm.model.user.pojo;

import com.agrm.model.common.dtos.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Setter
@Getter
@TableName("user")
public class User extends BaseModel {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String avatarUrl; //头像

    private Integer enabled; //0禁用 1启用

    private LocalDateTime userExpireTime; //账号有效期

    private Integer loginTimes;//登录次数

    private LocalDateTime lastLoginTime;//最后登录时间

    private String description;//描述

    @TableField(exist = false)
    private String captcha;//验证码

//    @TableField(exist = false)
//    private Integer captchaId;//验证码Id
@TableField(exist = false)
private String captchaId;//验证码Id

}
